﻿<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/framework/purehead.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>车辆物资采购网 - www.apep.com.cn</title>
<link href="<%=Config.getWebPath()%>/front/net/css/q-apep.css" rel="stylesheet" type="text/css">
<script language=javascript src="<%=Config.getFrameworkPath()%>/js/func.js"></script>
<script language=javascript src="<%=Config.getWebPath()%>/front/net/js/biz.js"></script>
<script language="javascript">

function clearFindKeyWordDefaultValue()
{
	if (GetValue("s_FindKeyWord") == "输入产品名称、规格或其他关键字")
	{
		SetValue("s_FindKeyWord","");
	}
}
function toLogin()
{
	SetAction("toFrontLogin");
	frm.submit();
}
function findProduct()
{
	clearFindKeyWordDefaultValue();
	SetAction("searchProduct");
	frm.submit();
}
//查看购物车
function viewShoppingCar()
{
	window.open("<%=Config.getSrv()%>?action_code=viewShoppingCar","_blank","height=368,width=620,left=250,top=120,menubar=no,scrollbars=yes");
}
//注册
function toRegist()
{
	frm.action_code.value = "toRegist";
	frm.submit();
}

//未登录用户察看购物车
function frontRegToShoppingBag()
{
	frm.action_code.value="frontRegToShoppingBag";
	frm.submit();
}
function bizLogout(isFront)
{
	if(!confirm("您确定要退出吗？")) return false;
	//var input1 = document.createElement("<input type=hidden name='isFront' value='"+isFront+"'>");
	//var input2 = document.createElement("<input type=hidden name='action_code' value='logout'>");
	//frmHead.appendChild(input1);
	//frmHead.appendChild(input2);
	frm.action_code.value = "logout";
	frm.target = "_self";
	frm.submit();
}

</script>
</head>

<body leftmargin="0" topmargin="0">
<form name="frm" action="<%=Config.getSrv()%>" method="post" onsubmit="return false;">
<input type=hidden name="action_code">
<input type=hidden name="isFront" value="true">
<input type="hidden" name="s_CatalogCode" value="0">

<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="204F7D">
  <tr>
    <td align="center" valign="top"><table width="778" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td width="778" bgcolor="#FFFFFF"> 

              <table width="778" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr> 
                  <td height="195" valign="bottom" background="<%=Config.getWebPath()%>/front/net/images/fr-1.jpg"><table width="58%" border="0" cellspacing="0" cellpadding="0">
                      <tr> 
                        <td width="17%" height="30" align="right" class="white-c">寻找产品:</td>
                        <td width="43%" height="30"><input name="s_FindKeyWord" type="text" class="inputborder_blue" onFocus="this.select()" onBlur="if (value ==''){value='输入产品名称、规格或其他关键字'}" onClick="if(this.value=='输入产品名称、规格或其他关键字')this.value=''"  onMouseOver="this.focus()" value="输入产品名称、规格或其他关键字" size="30" style="BACKGROUND-COLOR: D5F1FE; BORDER-BOTTOM: 0F1F98 1px solid; BORDER-LEFT: 0F1F98 1px solid; BORDER-RIGHT: 0F1F98 1px solid; BORDER-TOP: 0F1F98 1px solid; COLOR: #000000; FONT-SIZE: 12px"></td>
                        <td width="9%" height="30"><input name="Submit1" type="button" class="button" value="提交" onClick="findProduct();return false;"></td>
                        <td width="31%" height="30"><a href="<%=Config.getWebPath()%>/front/net/productSearch.jsp" class="link15">高级搜索</a></td>
                      </tr>
                    </table></td>
                </tr>
                <tr> 
                  <td><table id="__01" width="778" height="31" border="0" cellpadding="0" cellspacing="0">
                      <tr> 
                        <td width="140"> <img src="<%=Config.getWebPath()%>/front/net/images/fre_01.jpg" width="140" height="31" alt=""></td>
                        <td width="77"> <a href="/servlet/Srv?action_code=catalogMore"><img src="<%=Config.getWebPath()%>/front/net/images/fre_02.jpg" alt="" width="77" height="31" border="0"></a></td>
                        <td width="76"> <a href="" onclick="toRegist();return false;"><img src="<%=Config.getWebPath()%>/front/net/images/fre_03.jpg" alt="" width="76" height="31" border="0"></a></td>
                        <td width="228"> <img src="<%=Config.getWebPath()%>/front/net/images/fre_04.jpg" width="228" height="31" alt=""></td>
                        <td width="36"> <a href=""  onclick="toLogin();return false;"><img src="<%=Config.getWebPath()%>/front/net/images/fre_05.jpg" alt="" width="36" height="31" border="0"></a></td>
                    <% if(loginInfo.isLogin()){ %>    
                        <td width="72"> <a href="" onClick="viewShoppingCar(); return false;"><img src="<%=Config.getWebPath()%>/front/net/images/fre_06.jpg" alt="" width="72" height="31" border="0"></a></td>
                    <% }else{ %>
                    	<td width="72"> <a href="" onClick="frontRegToShoppingBag(); return false;"><img src="<%=Config.getWebPath()%>/front/net/images/fre_06.jpg" alt="" width="72" height="31" border="0"></a></td>
                    	
                    <% } %>
                    <td width="84"> <a href="" onclick="bizRedirectToManagerPage();return false;"><img src="<%=Config.getWebPath()%>/front/net/images/fre_07.jpg" alt="" width="84" height="31" border="0"></a></td>
                        <td width="65"> <a href="<%=Config.getWebPath()%>/front/net/leaveWord.jsp"><img src="<%=Config.getWebPath()%>/front/net/images/fre_08.jpg" alt="" width="65" height="31" border="0"></a></td>
                      </tr>
                    </table></td>
                </tr>
              </table>
              </form>